package com.yh.filter;

import java.util.ArrayList;
import java.util.List;

/**
 * @date 2021-3-12
 * @author YuHao
 */
public class UrlOpenFilter {
    private static final List<String> WHITE_LIST = new ArrayList<>();

    static {
        WHITE_LIST.add("/cow-user/auth/login");
        WHITE_LIST.add("/cow-gen/gen/genCode");
        WHITE_LIST.add("/learn-register/test/getUser");
        WHITE_LIST.add("/pro-register/pro/getProInfo");
        WHITE_LIST.add("/snap-up-register/snapUp");
    }

    /**
     * 默认无需鉴权的API
     */
    public static List<String> getWhiteList() {
        return WHITE_LIST;
    }

}
